package studentproject.main.projectEntry;

import homework.test1.Student;
import studentproject.main.controller.StudentController;
import studentproject.main.controller.TeacherController;

import java.util.Scanner;

public class Entry {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);

        while (true){
            System.out.println("==========欢迎来到黑马管理系统==========");
            System.out.println("1.学生管理系统");
            System.out.println("2.老师管理系统");
            System.out.println("3.退出");
            System.out.println("请输入您的选择：");
            String choice = sc.next();

            switch (choice){
                case "1":
                    StudentController stc = new StudentController();
                    stc.start();
                    break;
                case "2":
                    TeacherController ttc = new TeacherController();
                    ttc.start();
                    break;
                case "3":
                    System.exit(0);
                default:
                    System.out.println("您的输入有误：请重新输入。");
                    break;
            }

        }
    }
}
